﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SHKF.B2C.YouZanYun.Model.Inter.CategoryPropertys
{
    public class Public_Propertys
    {
        /// <summary>
        /// 1:普通属性,2:规格属性,3:交易属性,4:SPU属性,5:认证属性
        /// </summary>
        public int property_group { get; set; }

        /// <summary>
        /// 公域属性
        /// </summary>
        public Property property { get; set; }

        /// <summary>
        /// 是否必填1：必填，0：非必填
        /// </summary>
        public int is_required { get; set; }
    }

    public class Property
    {
        /// <summary>
        /// 属性类型，1：字符串，2：日期，3：整数，4：小数，5：枚举 6: 图片(值是url)
        /// </summary>
        public int value_type { get; set; }

        /// <summary>
        /// 属性值名称
        /// </summary>
        public List<string> value_names { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string note { get; set; }

        /// <summary>
        /// 属性id
        /// </summary>
        public long id { get; set; }

        /// <summary>
        /// 属性名称
        /// </summary>
        public string name { get; set; }
    }
}
